#ifndef KZTOOLBTN_H
#define KZTOOLBTN_H

#include <QWidget>
#include <QBoxLayout>
#include "KzWidget.h"

namespace Ui {
class KzToolBtn;
}

class KzToolBtn : public KzWidget
{
    Q_OBJECT

public:
    explicit KzToolBtn(QWidget *parent = nullptr);
    ~KzToolBtn();
    void SetBtnText(const std::string &text);

private:
    Ui::KzToolBtn *ui;
    QBoxLayout* layout;

    void InitLayout();

private  slots:
    void PressPushBtn(bool checked);


    signals:
        void Clicked(bool checked,int tag);
};

#endif // KZTOOLBTN_H
